<?php include TMPL_PATH.'public/header.phtml';?>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/jscal2.css"/>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/border-radius.css"/>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/win2k.css"/>
<script type="text/javascript" src="/statics/js/calendar/calendar.js"></script>
<script type="text/javascript" src="/statics/js/calendar/lang/zh-cn.js"></script>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    	<div style="float:left;margin-right:50px;">
        <a href='javascript:;' class="on"><em>订单列表</em></a>
      </div>
</div>
<div class="bk"></div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align='center' width="50">订单号</th>
            <th align='center' width="80">电子邮件</th>
            <th align='center' width="80">收货人</th>
            <th align='center' width="200">地址</th>
            <th align='center' width="80">邮编</th>
			<th align='center' width="80">电话</th>
			<th align='center' width="100">手机</th>
			<th align='center' width="150">所在地区</th>
			<th align='center' width="100">配送方式</th>
			<th align='center' width="100">支付方式</th>
			<th align='center' width="100">下单时间</th>
			<th align='center' width="200">订单状态</th>
			<th align='center' width="150">管理操作</th>
            </tr>
        </thead>
    <tbody>
	   	<?php if(isset($ordersInfo) && $ordersInfo):
		foreach($ordersInfo as $v):
   ?>
			<tr>
					<td align='center'><?php echo $v['order_sn'];?></td>
					<td align='center'><?php echo $v['delivery_email'];?></td>
					<td align='center'><?php echo $v['delivery_first_name'];?></td>
					<td align='center'><?php echo $v['delivery_address'];?></td>
					<td align='center'><?php echo $v['delivery_postcode'];?></td>
					<td align='center'><?php echo $v['delivery_phone'];?></td>
					<td align='center'><?php echo $v['delivery_mobile']?></td>

					<td align='center'><?php echo '['. $v['delivery_country'] . ($v['delivery_province'] ? ' - '.$v['delivery_province'] : null). ' ] '?><?php echo $v['delivery_city'];?></td>
					<td align='center'><?php echo $v['shipping_method'];?></td>
					<td align='center'><?php echo $v['payment_method'];?></td>
					<td align='center'><?php echo date('Y-m-d H:i:s', $v['start_time']);?></td>
					<td align='center'><?php echo OrderModel::$orderStatusCn[$v['order_status']];?>,
					<?php echo OrderModel::$paymentStatus[$v['payment_status']];?>,
					<?php echo OrderModel::$shippingStatus[$v['shipping_status']];?></td>
					<td align='center'>
					<a href="javascript:openwinx('<?php echo U('order/order_print', 'oid='. $v['id'])?>','order_print');">打印|</a>
					<a href="<?php echo U('order/order_edit', 'oid='.$v['id']);?>">查看</a></td>
				</tr>
   </tbody>
   	<?php 
	endforeach;
		endif;
	?>
    </table>
	<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>